<?php
	include("../lib/lib_travel_agency.php");
	$agc=new agency_staff($agency_epsn,$agency_user_ID);
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>旅客信息查看</title>
<link href="style.css" rel="stylesheet" type="text/css" /></head>

<body>

<div class="wrap">
<div id="top">
  <div style="padding-left:27px; padding-top:37px"><a href="index.php"><img alt=""  src="images/logo.jpg" width="261" height="53" border="0" /></a></div>
  <div style="padding-left:92px; padding-top:45px"><a href="routes.html"><img alt=""  src="images/h1.jpg" width="51" height="16" border="0" style="margin-right:82px " /></a><a href="view_trips.php"><img alt=""  src="images/h2.jpg" width="51" height="16" border="0" style="margin-right:92px " /></a><a href="pay_for_trips.php"><img alt=""  src="images/h3.jpg" width="51" height="16" border="0" style="margin-right:87px " /></a><a href="../user_login.php" target="blank"><img alt=""  src="images/h4.jpg" width="51" height="16" border="0" style="margin-right:83px " /></a><a href="contact.html"><img alt=""  src="images/h5.jpg" width="51" height="16" border="0" /></a></div>
  </div>
<div id="content">
<!--*********************************************************************************-->
<div style="padding-left:30px; padding-top:10px">
  <div class="title" style="width:642px "><span class="title" style="width:642px "><img  src="images/best_6.jpg" alt="" width="139" height="16" style="margin-left:12px " /></span></div>
</div>
<div style="padding-left:42px; padding-top:23px; padding-right:40px">
  <?php
	if($_POST["route_name"]=="all")
	{
		$routes=$agc->smart_get(false,16);
		foreach($routes as $a_route)
		{
			list($agency_name,$route_name)=explode(".",$a_route["caption"]);
			for($i=0;$i<=3;$i++)
			{
				$trip_full_name=$agency_name.".".$route_name.".".formated_date(date("Y"),date("m"),date("d"),$i);
				$ts=new trip($trip_full_name);
				$ts->get_users_belong();
				$ts->list_users_belong(2);
			}
		}
	}
	else
	{
		$route_name=$_POST["route_name"];
		for($i=0;$i<=3;$i++)
		{
			$trip_full_name=$agency_name.".".$route_name.".".formated_date(date("Y"),date("m"),date("d"),$i);
			$ts=new trip($trip_full_name);
			$ts->get_users_belong();
			$ts->list_users_belong(2);
		}
	}	
	?>
   <a href="javascript:history.go(-1);">返回上一页</a> 
</div>
<span class="link_green_light"><a href="#">
<!--*********************************************************************************-->
</a></span></div>